package com.bmadmin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bmadmin.domain.AddressUser;
import com.bmadmin.domain.SysDepartmentsPOJO;

public interface AddressDao {

	List<SysDepartmentsPOJO> getAddressTreeList(@Param("pojo") SysDepartmentsPOJO sysDepartmentsPOJO);

	List<AddressUser> getUserList(@Param("pojo") AddressUser addressUser);

	int getNextDepartId(@Param("d_part_id") String d_part_id);

	int getNextDId(@Param("d_part_id") String d_part_id);

	int insertSelective(@Param("pojo") SysDepartmentsPOJO sysDepartmentsPOJO);

	int updateDepartment(@Param("pojo") SysDepartmentsPOJO sysDepartmentsPOJO);

	int delDepartment(@Param("pojo") SysDepartmentsPOJO sysDepartmentsPOJO);

	int insertUser(@Param("pojo") AddressUser addressUser);

	int updateUser(@Param("pojo") AddressUser addressUser);

	int deleteUser(@Param("u_id") String u_id);

}
